package lab02.test10;

public class Test {
    public static void main(String[] args) {
        ChinaPeople c=new ChinaPeople();
        c.country="中国";
        System.out.println(c.getString());


        BeiJing b=new BeiJing();
        b.country="北京";
        System.out.println(b.getString());


        AmericanPeople m=new AmericanPeople();
        m.country="美国";
        System.out.println(m.getString());
    }
}
